package com.somsoft.bzfk.common;

public class WaitingBlock {

	protected int[][] fks;
	protected int startX;
	protected int startY;
	protected int x;
	protected int y;
	protected int color;

	public int[][] getFks() {
		return fks;
	}

	public void setFks(int[][] fks) {
		this.fks = fks;
	}

	public int getWidth() {
		int x = 0;
		for (int i = 0; i < fks.length; i++) {
			for (int j = 0; j < fks[i].length; j++) {
				int fk = fks[i][j];
				if (fk != -1 && (j + 1) > x) {
					x = j + 1;
				}
			}
		}
		return x;
	}

	public int getHeight() {
		int y = 0;
		for (int i = 0; i < fks.length; i++) {
			for (int j = 0; j < fks[i].length; j++) {
				int fk = fks[i][j];
				if (fk != -1 && (i + 1) > y) {
					y = i + 1;
				}
			}
		}
		return y;
	}

	public int getStartX() {
		return startX;
	}

	public void setStartX(int startX) {
		this.startX = startX;
	}

	public int getStartY() {
		return startY;
	}

	public void setStartY(int startY) {
		this.startY = startY;
	}

	public int getX() {
		return x;
	}

	public void setX(int x) {
		this.x = x;
	}

	public int getY() {
		return y;
	}

	public void setY(int y) {
		this.y = y;
	}

	public int getColor() {
		return color;
	}

	public void setColor(int color) {
		this.color = color;
	}

}
